<?php

use app\common\middleware\ApiTest;
use app\common\middleware\BindLoginUser;
use app\common\middleware\Init;
use app\common\middleware\IsAdminRoute;
use app\common\middleware\PhoneExistCheck;
use app\common\middleware\WithoutLogin;

return [
    'alias'    => [
        'adminRoute'   => IsAdminRoute::class,
        'withoutLogin' => WithoutLogin::class,
        'apiTest'      => ApiTest::class,
        'phoneCheck'   => PhoneExistCheck::class,
    ],
    'priority' => [
        ApiTest::class,
        Init::class,
        // 后台路由
        IsAdminRoute::class,
        // 无需登录
        WithoutLogin::class,
        // 绑定用户
        BindLoginUser::class,
        // 检查用户手机号
        PhoneExistCheck::class,
    ],
];
